/* Author : Maisa Nurul Agnia */
package jtk.project4.fleet.field;



import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.TextField;

public class PurchasedFromVendorField extends GroupControl {
	
	
	private MemoField notesVendorField;
	private ComboField<String> vendorField;
	
	

	public PurchasedFromVendorField(String bindID){
		setTitle("header.PurchasedFrom(Vendor)"); //disesuaikan dengan nama field
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields()
	{
		notesVendorField = new MemoField();
		vendorField = new ComboField <String> ("PurchasedFromVendor","wow");
		//vendorField.setPreferredSize(vendorField.getPreferredSize());
		
		
	}
	
	private void createLayout()
	{
		setLayout(new FormLayout())

		.addField(vendorField,Resize.HORIZONTAL)
		.addRow()
		.addField(notesVendorField)	 		;
	}
}
